Fix automatic logout on Reload