fixed mistakes in basket manager