Fixed bug where pins were not being cleared correctly after updates from server.