Fix ref issue #45.