Fixes #23, thanks @ricklove1 for the report