Fixed a bug. Refs #8994.