errConfig not defined bug fixed