small SQL fix