remove trailing slash on change theme