fix last activity errors