Fixed multiple inheritance and exports issue.