fix the sql error, should be in parallel with the schema