Fix bug in recording a value metric by its game ID and name