Fix bug where cell in cells caused segfault