bugfix for the media record matching