Fixed bug where basket would be mistaken for empty