fix when return null from temp files