Jim Pickard Ed Miliband scrapes through