fix a build logic bug.