Fix for double scalar conversion error.

This is a potential fix for Issue 8 (which I raised.)