Save at logout fixed.