Fixed a few API errors

Fixed a few API errors