what did ted do to barney's sister