[Mac] Fix bug in wt-monitor and commit.