Fixed warning for uninitialized prevScore