fix the get field by parent location and get block by parent field