pre-SQL fix