fix bug while cell is undefined