restoreLine fixed

now only cares about endpoints if you specifically tell it to.