notegenerator bugfix