fix on getline method