Fix the buildform hook