fixed error in insight-api