cleaned up APIError which confused IE9