fixed optional slash problem