fix document deletion: keep list of free positions