repair phrase extraction bugs