Fix process listener registration