fixed peek last, first when list is empty