fixed getstats error not removing the dialog