.lastsession causing conflcits with GUI