Fixed issue, calculate logx