fix a bug about MEDIA_ROOT