Fixed small inserting bug