Fix minor bugs in new cell, update, delete