Fixed a bug concerning the appearance of success messages after errors.