fixing grace note crash when nothing is detected