added but not tested fixes for hanging notes bug