Removed double callback on connect.