fixes #1, thanks to @vasili111