Fix  get quantity to return 0 when deleted