bugfix remove temp file