fix the end of line issue