Fixed an issue with haxe 2.10