Fix wrong variable assigned. refs #3824