fixes bug in jmx