fixed bad table ref