fix bug when meet blank page