undefined field value bug fixed