Fix bug with prefix when params are used.