fix crashing bug when users do not select any items
resolved conflict