fixing alert messages