fixed bug introduced in 547fbeb that led to twice-encoded search terms when changing state