Fix trailing slash warning