Fix white screen caused by history