fixed a bug with media folder