fix to remove resources without href