Fixed some debugging code.