Fix parameter issue in call to write_profile_info and host check.