fix clianing after erro sql