fix lastlog