Fix error when access portfolio in anonymous mode