fixed removig of the copies of resources