Fixed *NullPointerException when to media with different type having the same name*