Bug fix for getting file size temporary file