Bugfixing (haven't fixed exception when using 64-bit simulator)