fixed a bug in field naming