Fix fatal bugs.