[core] fix on media permission