Fix connect in the begining