Fix broken hooked functions