there was a problem with the addPrefix code