fixed ressource bug