Why not just move this down and test the desired outcome rather than the generated code?