Fixes #1.  Thanks @RadoslawT !