fix bugs in getF/putF implemenations