Fixed bug in point light generation