Fixed MBeanRegistrer not working