fixed an error on PRVO for variables declared in the initialization part of the for statement