build system bug fix