Fix bug in get_light_object