fix bugs and upgrade to wisdom-framework version