Fixed a crash that happened while opening a new tab during a detail fragment