Fix title extraction