Fix bug when data not set