fix credential migration