Bug fix: should check if dBgain is None, not if it's truthy