Corrected bug on ternary
Merge pull request #27 from brk00/patch-1

Corrected bug on ternary operation