fix order of resources - looks like it only worked by chance before