fix alert, fix reset