fix points calculation