fix insert-measurements call in migrate