fix if old hash equals new hash