temp control flow fix (works on Cpp, Flash, Js, Neko and is really slow)