Fixed issue 197. Resolves #197.