Workaround for 3169

Fix https://github.com/HaxeFoundation/haxe/issues/3169