don't remove layer grom a group if it doesn't belong to it, close #1383