A door switch malfunctioned on the elevator on the landing side in turn caused a fuse to blow. The blown fuse and loss of power caused the VFD to loose its program. Once the switch and fuse were repaired the VFD had to be reprogrammed. There were no individuals on the elevator at any time. The elevator was back in service at 2:18AM.