applycontroller fix