Ensured that ac.source match library material type (strtolower)