Fixed some coding errors. Refs #9326.