2 fixes in partition tables model & api