Could be a takeover, but more likely the market reacted very badly to the writedown and covenant breach and then, on closer inspection, decided it wasn't as bad as it could have been, especially with the company still paying a dividend. The directors buying some shares would have helped too