fix bug about using card board system flag