Fixed issue #11, the same problem was happening with ranged as well so I fixed that too. Thanks for reporting it!