Avoid crashing when using many meters (thanks to David Cho for the report)

3 files changed