Fixed some platform glitches