fixed a little bug, refs #14