Fixed bug with record iteration and points insertion