Fixed bug in click on editing button