Fixed a bug in non-linear list and multi-select mode.