fix bug in makeDecision()