Fixed saving of base layer, can now edit any layer