fix logout/in error