Fix crash after fragment detach