fixes issue in getRecord implementation #57