try to improve the states to remove old configuration (it doesn't work)