Fix issue of get power name logic