Fix all the bugs.