Fix parameter issue in call to write_profile_info.