Fix issue #365.

Corrects issue #365.