slightly fix redirect to ssl