It is possible that you'll get the actualised PeerCount on the next tick of execution.
So consider adding a "Wait 0" action before your log to see if things change.
If so, you can delay the destruction of your buttons as part of a function that you call after the "Wait 0" action.