fixed redirect trailing slash bug again.