fixed error on table reference