Fixed "reverse" logic