Fix ref counts in initialization code.
3 files changed