Fixed typo and undefined lightTime variable.