minor fix in insertion