Fixed bug in reprocessing lost messages