fixed bug with rev ordered words