Lord Magnussen left it late but he got over the line