fix subscribe hook