Fixed light initialization bug