Fixed connect handler.