Fix media directory