Fixing node ordering