Makes the apply button work again after clicking "revert" and changing something. (cherry picked from commit 730c72b4)