fix bugs to build new version