Possible fix to the check_no_data function.