fixed migrate functionality for onapp