Fix insert method.