Move misplaced line of code in reports