fixes bug in getScore function