bugfix: crash when a shop is destroyed.