Fixed bug with resending lost critical messages