Fixing missing trailing slash and removing echo debug code.