bug in API