bugfix: pins sometimes got not deleted when update happened