fixed a couple minor bugs in refactoring of getfield method