Fix strange exception