Fix crash when go back.