Resource ordering fix.