Fixed an issue with infinite instantiation of Cell objects.