fix bugs for readNote