Fix order in resource elements