It took the company seven months to realise its mistake. By the time they did, millions had already been spent.