fix cannot open course issue.
Move domain object to module