Solving problems gets a person out of bad emotional habits.