Fix infinite loop

Fix infinite loop in the unfixUnderscores() function, thanks to jere62smi for finding this bug!