fix by haxe3