Add a missing emit() in flux