fix #1662 upgrade after 0.4