Fixed a bug with scoring