fix clean corrupt data before execute sql script