fix delete hook