fixed dependecy issue in migrate