bugs in EditCtrl