Fixed lights not being added to objects correctly.