Fixed model bug when using single selection