Hotfixed migration problem with removing the time period reference

@dm-istomin Check it out