Fix ternary operator
Merge pull request #232 from raven02/patch-2

Fix ternary operator