fix checking whether file was already fixed