insertNth not working