New fix to avoid comand line editing problems