fixing incorrect table names