Alleviating potential bug when data is missing.