fix 4.0 issue with the media library