MDL-22943 fixed enrol upgrade problem, credit goes to Matt Campbell