Fixed invalid use of r8 as a temp