Fixed issue with average rating not being calculated

Signed-off-by: unknown <cnwnh1@cnwcb5a.cnw.co.nz>