fix references to media directory