fix issue related with making bar configurable

Change-Id: I4ac60078c80ef99eaae65f21a7415173e136ac12