fix bug where table view did not get correct height