clean tmp file and .log mistakes