Fixed last_seen attribute error