Fix public and media directory