fixed error on end of line