Fixed bug in NewRowDialog