refs #241. fixed bug found during testing