fix quelpa-upgrade bug