Fix prefix not applied recursively