fixes media object errors