fix permissions on metadata addition