fixed crash on alert as a dictionary