fixed bug in buildQueryPlan() while updating first.Extra