Fix the enroll button bug.
Bug Description:
When the course detail show, clicking the enroll button will hide the details unexpectedly.