Fix v0.4.8 connect callback undefined