Fix issue #15 : Wrong Media count for duplicated media