fix bug in FIND_VAR_PENDING_OK