How do good students cope with bad teaching?