Media directory fix