Fixed more errors with insert