Fixes #9255

Fixes the issue with gas mask and relaxation gas, as noted by user Barhandar.