fix if media not loaded