Fixed retVal of AddTab