A bolt became loose in the magnetic door latch that activates the latch mechanism. As the elevator was being raised from the bottom of the shaft (no one was on the elevator) the latch vibrated loose, causing the elevator to stop 26 feet above the bottom of the shaft. Elevator was out of service for approximately one hour before repairs were completed.