fixed a bug in custom fieald handling.