fixed error in logic_operation and lcd_print