Bug fix when for deactivating non active attribute