Fix improper ressource ordering