Bugfix getServiceMsgCount