Removes reference to cw.