Fixed bugs in states and in speech filtering.