#204 fixed incorrect query