Fix this crash. Maybe. http://pastie.org/9733183