bugfix for received messages counter