Corrected math error causing 2px overflow