Fix resources migrations