Fix insert empty line in the end of file