fix bug with no items