Fix backwards logic