Fix for query media.