fixed table bug