fixing editable field condition