Fix reverse logic