Fixed error where medium was case sensitive