fix possible NPE reported by findbugs
mbean fix