Make breakable hook work in any mode