bug fixed : no more created file after error