fix note hashing in migration