Tried to find problem with insertAt