Fix notes generation