fix for intermittent error for HAP