fxing a bug in edit field