Fixed error with api_error #14