fixed build bugs