Ip6tables options changes? how to fix?

root@GL-MIFI:~# /etc/init.d/qos start
ip6tables v1.6.2: invalid port/service `-m' specified
Try `ip6tables -h' or 'ip6tables --help' for more information.
ip6tables v1.6.2: invalid port/service `-m' specified
Try `ip6tables -h' or 'ip6tables --help' for more information.
ip6tables v1.6.2: length: bad value for option "--length" near "-j", or out of range (0-65535).

Try `ip6tables -h' or 'ip6tables --help' for more information.
iptables v1.6.2: invalid port/service `-m' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.6.2: invalid port/service `-m' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.6.2: 
length: bad value for option "--length" near "-j", or out of range (0-65535).

Try `iptables -h' or 'iptables --help' for more information.


ip6tables v1.6.2: invalid port/service `-m' specified
Try `ip6tables -h' or 'ip6tables --help' for more information.
ip6tables v1.6.2: invalid port/service `-m' specified
Try `ip6tables -h' or 'ip6tables --help' for more information.
ip6tables v1.6.2: length: bad value for option "--length" near "-j", or out of range (0-65535).

Try `ip6tables -h' or 'ip6tables --help' for more information.
iptables v1.6.2: invalid port/service `-m' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.6.2: invalid port/service `-m' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.6.2: length: bad value for option "--length" near "-j", or out of range (0-65535).

Try `iptables -h' or 'iptables --help' for more information.
root@GL-MIFI:~#

Maybe it is a bug for old qos-scripts. You can try to execute those commands in command line.

factorydefault -y && reboot
opkg update
wget http://downloads.openwrt.org/releases/18.06.2/packages/mips_24kc/luci/luci-app-qos_git-19.170.32094-4d6d8bc-1_all.ipk -O /tmp/luci-app-qos_git-19.170.32094-4d6d8bc-1_all.ipk  
wget http://downloads.openwrt.org/releases/18.06.2/packages/mips_24kc/base/qos-scripts_1.3.1-1_all.ipk -O /tmp/qos-scripts_1.3.1-1_all.ipk  
opkg install /tmp/luci-app-qos_git-19.170.32094-4d6d8bc-1_all.ipk /tmp/qos-scripts_1.3.1-1_all.ipk