Fixed typos in register_pipe, whoops.

Changed mux_update() so it works better.