fixed issue 1584 (grid export with left join)