Bugfix in closeNote