fixed bug for no items