bug with get query corrected