fix bug that errors when matching vector rule with non-vector expression