fix setting of line mode