[bugfix] Fixed error during block removal.