fixed the glitches jon sent me