Fix a bug when setting release type
v0.2.2