Fixed problem with foxlatch main program.