Fixed light removal and duplication bugs.