fix broken lines

there are lines which are empty by the app when not closed before creating a new entry