small change to query
small hack to make things work on the first export