The Marauders' Map

How does Harry got the map back in the 5th book? the last you hear of it is when Barty Crouch Jr. mentions "potter's map" when he is under the truth potions effect. there's never a mention about it being returned to Harry since Crouch had "borrowed" it.