typo
fix logic