small table code fix