In fact , neither earnings nor dividends fell nearly as far as feared in the depths of the bust , which partly explains the strength of the subsequent rally , but that didn 't stop companies preparing for the worst by slashing inventories , investment and costs .