fix some bugs in enroll and request controllers