Fix issues with preview. [refs #4411 and spent 1 hour on #4411]