Prevent double rendering on search