Fixed bug in build system