fixed incorrect hash detection when reloading file