fixed an error, refs #1287