ken miles bug fix

fix endless "if" by ken miles