Fix bug when state is discarded after number click.