sigmoid func was fixed so that it can be applicable to large x.