Fix R2 compile