Fixing backwards logic.