fixed issue with nil notes