fix issue with gate setting in bn.service