fixed remove element of the list when it's the only one