fix ssl redirect