fixed an issue in command fetch portal details