Fix bad var and missing newline