Fix text_in and text_out muddle up