Fixed few bugs, connect and config complete.