fix a bug that crash the game when moving items in empty list
fix bug, inverted the numbering