fixes usage of alert macro