Fixes #1736, which fix regression of Atmosphere/atmosphere-javascript#119