Fixing problem with trailing slashes.