fix powerbar's bug