fix indexStatus and indexWait, fixes #29