Fix issue of duplicating the tableView