fix check data for null