fix alert init method to use defined?