fix logout script