Fixed a mapping inconsistency with the SQL