fixed nullexception when item is not accessible due to security