Bugfix on custom metadata on PostGresql.