Bug introduced in #281 fixed

Int should be double
Merge pull request #284 from Snorvisable/master

Bug introduced in #281 fixed