Fix resources migration