I don't understand the above change? Is there a reason for moving this chunk of code?