fix invalid case for lacking newline