Fixed bug on getline