Fix session lastused not being updated fixes #705