Fix nodata bug