Fix build hook