Attrib value was not being copied properly (just first char)