fixed bugs of insert routine