fixing an obvious but oddly unnoticed error
delete temp file