fixed mediaAdd, mediaRemove events