fixes route bug after clearing the cart, and too many categories appearing after search