Fixes issue with getDiatonicScale