Fix media resource helper