fixed bug on diditbutton