Fixed issue 251: setEnableHeartBeat could not work