fixing media directory config