Nextcloud sorting MP4 as photos

Nextcloud version (eg, 20.0.5): 21.0.2
Operating system and version (eg, Ubuntu 20.04): Unraid 6.9.2
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.18.0
PHP version (eg, 7.4): replace me

The issue you are facing:
I seem to have an issue where nextcloud sorts videos (mp4 files) under both photos and videos in the gallery

Is this the first time you’ve seen this error? (Y/N): y

The output of your Nextcloud log in Admin > Logging:
just some logging regarding failed logins

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '192.168.10.38:443',
    1 => '',
  ),
  'dbtype' => 'mysql',
  'version' => '21.0.2.1',
  'overwrite.cli.url' => '',
  'overwritehost' => '',
  'overwriteprotocol' => 'https',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'pipe',
  'mail_from_address' => 'server',
  'mail_domain' => ',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'filesystem_check_changes' => 1,
  'maintenance' => false,
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.10.38:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '',
  'filesystem_check_changes' => 1,
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:
just contains a few config errors relating to the above file config.php that are fixed

Anyone got a clue why its sorting files this way? It is a bit anoying to have all of em in the same place especially since there are sorting functions for this.