make migration work properly