fix bug of initialize cells