fix div zero in config