fix Sql creator issue