Fixed issue in Dynamic migration