Fix R2 - error calcutalion