Fix a problem that avoids toggling location list. Don't know why