fix for deleting objects on another layer