Fixed update of tables with deleted entities