fixed bug: OK button in EntryDialog is always disabled