fixing alert window