Fixed build hook