Reset lineends