fix insertion issue