Fixed error in mediaPath method