Fixes #181. Thanks @AntonOfTheWoods