Unbreak lastsession

#2775 pushed a broken version. This fixes that.