The company said on Wednesday that it made a net profit of $ 903m , albeit due to an income tax benefit , after three straight lossmaking quarters in which it suffered a near-collapse in the construction , machinery and car markets .