Fix sql file bug