Added ; to the end of the ternary statement