fixed realm token not being released