fix the no new line at end error