fix charwrite command propagation