Fix resource order