You should probably finish changing state before emitting the signal.