Fixed table name bug