little fix for permissions in media