yali: fix operation order