Fix getline usage