Fix downgrade version bug