fixed multiple insertion issue