fixed bugs in build file