fix issue in media library