handle cast error
update el logic operator