Fixed "Invalid api path." error on logout