properly unassigns chains on broswer refresh too