fixed double ressource declaration