Minor fix in the SQL mapping