cluster: Fix some bugs.