Fix for buggy vermagic, revert last patch commit
thanks to:
Alberto96 and TheWhisp