Fix gallery ajax on search