Fixed alert bugs related to changing event type.