fix poweroff problem