cleaning expando state when a new API