refs #894, fix a bug