Unfortunately the fix is not trivial in this case. Starting with 2.5.x Amazon has slightly changed the way their DRM works.
However, there are alternatives. The thread I mentioned before discusses one of those:
https://www.mobileread.com/forums/showthread.php?t=86259