Fix ternary expr and add a space between lines