Fix writeDefineEditText