bugfixes because of the table model