Minor corrections for check_data();