Fixed bug in restarting in starting encrypted chat