refs #23 bug fix