Had the if on the wrong div.