fix bugs to build project