Small fix for API method.