Fixed bug on remove on empty list.