refs #1560 fix one of the bugs