fix media dir