Fix dispenser communication

We tested this against 15 dispensers, many resets and lots of dispenser switching, it seems to work!