fix media files directory