fixed fields return undefined error.