fixed a bug in the field.php