fix branch cut for evaluating on real line