collecting temp files error handling
fix regression due to typo