Can now delete layers anywhere properly.