Fix problem with multiple instances migration