Fixes a crashing nagios plugin