Fix resources schema