Bugfixes for chord recognition logic