Fixed bug #333 : Nested ternary operators causing problems