fix tablep problem