fixed problem with adding to middle of list