Fix orientation in case of no valid patches