Fix crash after shown editing menu.