Fix an error for windows build. Refs #6087.