Fixing putfield bug.