fix two apis