fixed compatibility with stanford 1.3.5