prevent js error if region is not defined