fix Alert and AlertDocument repr methods