fix some bug improve the tableview performance.