Fix an issue with user sql.