Fix callback undefined