Fix warnings

Refs #1777.