Fixed a bug in empty cell init