Fix prefix stripping when run alongside other code.