Bug fix inside setCheckedItems.(fixed)

Signed-off-by: Barish Chandran <barishcb@gmail.com>