fixed hash calculation for instances to avoid false change detection