Fixing bug: trailing slash