fixed issue with displaying items from query