fixed some bugs in magicshifter