fix copyfrom to packed fields