fix for haxe 3.1