Fixed some error in Matcha::connect