Fix freeze when no permissions on metadata