Fixed bug than made painter crash after corner-node removal.
Fixed bug on removing first element causing bad reallocation of grid.