Fixed error in data api