KP thanks team for getting back on track