fix double print of alert text