Fix bug: Crash on close page twice