fixes for lastAlive detection