Fix resources stuff