Logic typo