fix bug: delete file if it exists