The result ended a run of four straight defeats and seven games without a win in the Premier League.