User score calculation fixed