Fixed the issue in note equals.