Fixed critical event pipe bug