fix decrement abnormal count missing parentheses and remove newline from eof