Fix roots_with_prefix

Fixes #12.