Fixed a downgrade bug.