fix media resources