attempt at fixing neighboring cells causing crash