fixed build sequence