Fixing JMX problems