bugs in table fixed