potential bugfix for shop buying via API