fixed bug with existing file verification