fixed build hook