Fixing bug with field attach.