Fixed plugin for MD 4.0.5 and higher.
Updated patches.