Fix load error when used in spec testing.