fix bug about getline