It works when it’s plugged directly into the wall. Can anyone explain?