fixed bug when click on warning is not working