Fix for #40, #43, #47 deleting objects and light representations