Fixes issue when setting debug levels in agent.conf.