Fixed bug with previous queries display