fix hash detection on remotes