Merge pull request #199 from Chunjie/master

[PT 49575023] support set/unset candidate inactive