fixes alert if has wrong option