Fix getLine problems