Fix error with SNI checks