fix logical error

Signed-off-by: Ruoyu <liangry@ucweb.com>