Fixed an error for windows. Refs #9243.