Fix lost data when press back button