fix isPublic method for built-ins