Fix the pre-create hook.