Fix Hook Rewrite Problem