fix for BZ 1030047
Merge pull request #13 from EricWittmann/bz-1030047

fix for BZ 1030047