Fixes #1 by @valeriomarchetti