I have the same problem as this person but i don't have those lines in my RAMPS.h file as seen here.
I've recently burnt my potentiometer on E0 so the motor isn't working properly anymore. I want to to use it on E1 instead. If you have any better idea how to fix this instead of changing code in firmware, feel free to share.