Fixed some bugs due to Swift changes. Reload table data on main thread now show it shows immediately.