Bug fixing in calling "input_writer" adapter