Fixed some bugs due to Swift changes. Reload table data on main thread n...

...ow show it shows immediately.