fixed bug in retina query