trying to fix empty cell bug