Invensys 'turns corner' with loss