Remove the empty cell - BUG

Unintentionally algorithm was poorly implemented... 
Special thanks for Dongxia Bai from Tsinghua University in China!