Fixed edit #editcancel handler.