Fixes bug in sleep score.