Fixed possible bug with entropy fraction