Missed checking isTrace variable