Fixed List.remove bug