Fixed column type assigning due to incorrect usage of range (causing a struct copy instead of a reference)