fix for haxe 3.1.3