You need more gas. Check the gas rings, gas key alignment, gas block alignment. If everything is good, you might need to open the gas port. Altitude will have almost no effect on the cycling.