fix bugs caused by github pages update