fixed bug in field directive

undefined data stopped the field from compiling new field