Fixed a bug in sending input to compare code.