fixed IllegalArgumentException problem: refs #29