fixed duplicates in layer manager