Fixed bug in orires code that was checking too strict.