fix empty cell problem