fix bugs that were making xkcd hang forever