fixed connect callback issue with minified versions