Can't call method "attach" without a package or object reference