Fixed a downgrade bug