fixed directory issue with media