fix for amazon invalid hpe constant bug