fixed some old tables API usages