Fixed insert errors