fix for media count