Mi Mix2 patching issue

Mi Mix2 patching issue
none 5.0 0

I have installed twrp 3.3.1.1 while installing mokee rom every time needs to modify updater-script and remove assert line till the ui_print. Otherwise twrp generates error 7 will patching mokee rom. Could you please fix this issue or remove assert line from updater script in future