fixed build hook order