Small bug fixes in list pop functions when operating with 1 element lists