Fixed bug where G followed by Gmaj didn't replace correctly