Fixed a NaN Bug with Score Variable