Haxe 3 bugs fixed

Some annoying spaces removed to compile on Haxe 3