Fixed bug in build process