fixed error

wobbled before turning the plug down, caused by a wrong placed if