fix widget item access bug