BUG: fixed bug in build process