fixed a problem with the lights not rendering correctly