Fixed a bug when opening a list