fixed some bugs in plate editing dialog