Fixed bug in makeDecision().