Fix cancel modal dialog 2 time