fixed prepublish hook