fixed restoring fragments and chat history