Fixes #1. Thanks @cdl.