Fixed getNumCurrentMessages