Fixed bugs in the new interprocess event system