fixed the ownername bug with the data/query api

Change-Id: If5c564986492e133a2f32eb8c640acecb81a00c3