bug fixes for note